//
//  HMFamousCollectionViewCell.m
//  localLife
//
//  Created by Limonwei on 15/11/26.
//  Copyright © 2015年 heima. All rights reserved.
//

#import "HMFamousCollectionViewCell.h"
#import "UIImageView+WebCache.h"

@interface HMFamousCollectionViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;

@property (weak, nonatomic) IBOutlet UIImageView *starImageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *introLabel;

@end

@implementation HMFamousCollectionViewCell

- (void)awakeFromNib {
    // Initialization code
}


-(void)setModel:(HMFamous *)model{
    
    _model = model;
    
    
    _nameLabel.text = _model.name;
    
    [_iconImageView sd_setImageWithURL:[NSURL URLWithString:_model.cover]];
    
    _introLabel.text = _model.intro;
    
    _starImageView.image = [UIImage imageNamed:[NSString stringWithFormat:@"star_%@",_model.score]];
    

}

@end








